From: Ben Pfaff Date: Sat, 1 Jan 2005 01:03:31 +0000 (+0000) Subject: Revert to requiring that exec return -1 if there is a problem loading X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc6f311a9d7a69072bdab8b8fd2554bb00b93457;p=pintos-anon Revert to requiring that exec return -1 if there is a problem loading a program. --- diff --git a/doc/userprog.texi b/doc/userprog.texi index e3771e4..884b757 100644 --- a/doc/userprog.texi +++ b/doc/userprog.texi @@ -405,9 +405,9 @@ conditions (usually errors). @item SYS_exec @itemx pid_t exec (const char *@var{cmd_line}) Runs the executable whose name is given in @var{cmd_line}, passing any -given arguments, and returns the new process's program id (pid). If -there is an error loading this program, may return pid -1, which -otherwise should not be a valid id number. +given arguments, and returns the new process's program id (pid). Must +return pid -1, which otherwise should not be a valid program id, if +there is an error loading this program. @item SYS_join @itemx int join (pid_t @var{pid})