diff options
| author | Miguel <m.i@gmx.at> | 2018-09-29 19:57:52 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-29 19:57:52 +0200 |
| commit | 75433d155c152b809e9f25b1099fc06d6106308b (patch) | |
| tree | f4f84309e6cf2aa9bc0d9df5ae532b94a60fea0f /userspace/fsh.c | |
| parent | 73e80bf4b6c69b92a04b525f114a072a1c4b0d3a (diff) | |
improving window compositor
Diffstat (limited to 'userspace/fsh.c')
| -rw-r--r-- | userspace/fsh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/userspace/fsh.c b/userspace/fsh.c index 81c2bce..d456d1b 100644 --- a/userspace/fsh.c +++ b/userspace/fsh.c @@ -229,6 +229,7 @@ bool process(char *buf) { int pid=_fork(); + if(pid==0) { if(token[0][0]=='/')sprintf(buf,"%s",token[0]); @@ -238,7 +239,10 @@ bool process(char *buf) exit(1); } - if(token[1]==NULL||strcmp(token[1],"&"))_wait(pid); + int last=0; + for(last=0;token[last+1]!=NULL;last++); + printf("last: %s\n",token[last]); + if(strcmp(token[last],"&"))_wait(pid); } return true; |
