X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fuserprog.texi;h=884b757c59bafdc56d1990ecc7e67cedc8814c8d;hb=8b4b30e474d03688b62ad2ccb6c1ec162c6d2a8d;hp=e3771e4e1aaf0f79e089841fa9d6432903737973;hpb=8f541a94d9e93c6040a38587ffafdc22f06eca0e;p=pintos-anon 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})