X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=exec.c;h=95bc43e4fae19d9791b36e5e7be2b06b1dc2ebb8;hp=1a302c16bf07dba2e8ae51cc706980487950bf88;hb=a8fd00dc4494bbcaecdf2302005c05a2d104b380;hpb=adbf9f09c9bf2a680c61b1ef3541c04f1cde97cf;ds=sidebyside diff --git a/exec.c b/exec.c index 1a302c16..95bc43e4 100644 --- a/exec.c +++ b/exec.c @@ -147,23 +147,10 @@ int para_exec_cmdline_pid(pid_t *pid, const char *cmdline, int *fds) if (!tmp) exit(EXIT_FAILURE); - argc = split_args(tmp, &argv, ' '); + argc = split_args(tmp, &argv, " \t"); ret = para_exec(pid, argv[0], argv, fds); free(argv); free(tmp); return ret; } -/** - * check whether a file exists - * - * \param fn the file name - * - * \return Non-zero iff file exists. - */ -int file_exists(const char *fn) -{ - struct stat statbuf; - - return !stat(fn, &statbuf); -}