Return to getpgid.c CVS log | Up to [local] / prex-old / usr / lib / posix / process |
version 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; | ||
m.hdr.code = PS_GETPGID; | m.hdr.code = PS_GETPGID; | ||
m.data[0] = pid ? pid : getpid(); | m.data[0] = pid; | ||
__posix_call(__proc_obj, &m, sizeof(m), 1); | if (__posix_call(__proc_obj, &m, sizeof(m), 1)) | ||
return -1; | |||
/* XXX: getpigid() does not return error */ | |||
return m.data[0]; | return m.data[0]; | ||
} | } |