u.h: refactoring of syscalls

This commit is contained in:
2019-11-24 15:47:11 +01:00
parent 5261c8554c
commit 63d860eb99
13 changed files with 33 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
/*
* This file is part of Jehanne.
*
* Copyright (C) 2017 Giacomo Tesio <giacomo@tesio.it>
* Copyright (C) 2017-2019 Giacomo Tesio <giacomo@tesio.it>
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -239,7 +239,7 @@ POSIX_setsid(int *errnop)
assert(access("/dev/posix", AEXIST) != 0);
/* start the new session */
switch(controlpid = sys_rfork(RFPROC|RFNOTEG|RFENVG|RFFDG)){
switch(controlpid = rfork(RFPROC|RFNOTEG|RFENVG|RFFDG)){
case -1:
goto FailWithEPERM;
case 0: