source: rtems/testsuites/psxtests/psx04/task2.c @ 5b8e885d

4.104.114.84.95
Last change on this file since 5b8e885d was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 841 bytes
Line 
1/*  Task_2
2 *
3 *  This routine serves as a test task.
4 *
5 *  Input parameters:
6 *    argument - task argument
7 *
8 *  Output parameters:  NONE
9 *
10 *  COPYRIGHT (c) 1989-1998.
11 *  On-Line Applications Research Corporation (OAR).
12 *  Copyright assigned to U.S. Government, 1994.
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.OARcorp.com/rtems/license.html.
17 *
18 *  $Id$
19 */
20
21#include "system.h"
22#include <signal.h>
23
24void *Task_2(
25  void *argument
26)
27{
28  int status;
29
30  printf( "Task_2: sending SIGUSR1\n" );
31  status = pthread_kill( Init_id, SIGUSR1 );
32  assert( !status );
33
34     /* switch to Init */
35
36  printf( "Task_2: exit\n" );
37  pthread_exit( NULL );
38
39     /* switch to Init */
40
41  return NULL; /* just so the compiler thinks we returned something */
42}
Note: See TracBrowser for help on using the repository browser.