Return to setpgid.c CVS log | Up to [local] / prex-old / usr / lib / posix / process |
version 1.1.1.1, 2008/06/03 10:38:50 | version 1.1.1.1.2.1, 2008/08/13 17:12:40 | ||
---|---|---|---|
|
|
||
{ | { | ||
struct msg m; | struct msg m; | ||
if (pgid < 0) { | |||
errno = EINVAL; | |||
return -1; | |||
} | |||
m.hdr.code = PS_SETPGID; | m.hdr.code = PS_SETPGID; | ||
m.data[0] = pid ? pid : getpid(); | m.data[0] = pid; | ||
m.data[1] = pgid ? pgid : m.data[0]; | m.data[1] = pgid; | ||
return __posix_call(__proc_obj, &m, sizeof(m), 1); | return __posix_call(__proc_obj, &m, sizeof(m), 1); | ||
} | } |