setpgrp() returns a pid_t, not an int.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2006, Haiku Inc. All Rights Reserved.
|
||||
* Copyright 2004-2007, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _UNISTD_H_
|
||||
@@ -145,7 +145,7 @@ extern pid_t getpgid(pid_t pid);
|
||||
|
||||
extern pid_t setsid(void);
|
||||
extern int setpgid(pid_t pid, pid_t pgid);
|
||||
extern int setpgrp(void);
|
||||
extern pid_t setpgrp(void);
|
||||
|
||||
/* access permissions */
|
||||
extern gid_t getegid(void);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2002-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <syscalls.h>
|
||||
@@ -73,7 +73,7 @@ setpgid(pid_t process, pid_t group)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
pid_t
|
||||
setpgrp(void)
|
||||
{
|
||||
return setpgid(0, 0);
|
||||
|
||||
Reference in New Issue
Block a user