aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-22 12:32:09 -0400
committerRuss Cox <rsc@swtch.com>2012-10-22 12:32:09 -0400
commit9e4b56e7645e08311590355824863ecf9f334f0c (patch)
treee075835acb77327b3f6bedacb9d265a443065714 /man
parent81c2c5e775d83896f25981cf4c4e486c5cc91180 (diff)
downloadplan9port-9e4b56e7645e08311590355824863ecf9f334f0c.tar.gz
plan9port-9e4b56e7645e08311590355824863ecf9f334f0c.tar.bz2
plan9port-9e4b56e7645e08311590355824863ecf9f334f0c.zip
libthread: add threadspawnd
R=rsc http://codereview.appspot.com/6742064
Diffstat (limited to 'man')
-rw-r--r--man/man3/thread.311
1 files changed, 11 insertions, 0 deletions
diff --git a/man/man3/thread.3 b/man/man3/thread.3
index 7f5cd69c..0ebbddd0 100644
--- a/man/man3/thread.3
+++ b/man/man3/thread.3
@@ -42,6 +42,7 @@ threadsetgrp,
threadsetname,
threadsetstate,
threadspawn,
+threadspawnd,
threadspawnl,
threadwaitchan,
yield \- thread and proc management
@@ -124,6 +125,7 @@ int chanprint(Channel *c, char *fmt, ...)
.XX
int threadspawnl(int fd[3], char *file, ...)
int threadspawn(int fd[3], char *file, char *args[])
+int threadspawnd(int fd[3], char *file, char *args[], char *dir)
int threadexecl(Channel *cpid, int fd[3], char *file, ...)
int threadexec(Channel *cpid, int fd[3], char *file, char *args[])
Channel* threadwaitchan(void)
@@ -240,6 +242,8 @@ Calls that do this are
.IR threadexecl ,
.IR threadexits ,
.IR threadspawn ,
+.IR threadspawnd ,
+.IR threadspawnl ,
.IR alt ,
.IR send ,
and
@@ -419,6 +423,13 @@ and
but do not replace the current thread.
They return the pid of the invoked program on success, or
\-1 on error.
+.I Threadspawnd
+is like
+.I threadspawn
+but takes as its final argument the directory in which to run the invoked program.
+The child will attempt to change into that directory before running the program,
+but it is only best effort: failure to change into the directory does not
+stop the running of the program.
.PP
.I Threadwaitchan
returns a channel of pointers to