Message type for PM_GETPID

Change-Id: Ib3ff13ad9c9e30bde08d4cacb6905955ace73924
This commit is contained in:
2014-07-28 17:05:37 +02:00
parent cc852e7783
commit f63d2f0eaf
4 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -15,6 +15,6 @@ pid_t getppid(void)
* are not always successful and Minix returns the reserved value
* (pid_t) -1 when there is an error.
*/
if (_syscall(PM_PROC_NR, PM_GETPID, &m) < 0) return ( (pid_t) -1);
return( (pid_t) m.PM_GETPID_PARENT);
if (_syscall(PM_PROC_NR, PM_GETPID, &m) < 0) return(-1);
return(m.m_pm_lc_getpid.parent_pid);
}