Updated to reflect API change.

SVN revision: 19528
This commit is contained in:
David Walter Seikel 2006-01-04 20:29:28 +00:00
parent ad6a5a6c70
commit 6959704eff
1 changed files with 5 additions and 5 deletions

View File

@ -120,12 +120,12 @@ int timer_once(void *data)
then = ecore_time_get(); then = ecore_time_get();
while ((length = read(fd, buf, 1024)) > 0) while ((length = read(fd, buf, 1024)) > 0)
ecore_exe_pipe_write(exe0, buf, length); ecore_exe_send(exe0, buf, length);
close(fd); close(fd);
} }
} }
/* FIXME: Fuckit, neither of these will actually cause /bin/cat to shut down. What the fuck does it take? */ /* FIXME: Fuckit, neither of these will actually cause /bin/cat to shut down. What the fuck does it take? */
ecore_exe_pipe_write(exe0, "\004", 1); /* Send an EOF. */ ecore_exe_send(exe0, "\004", 1); /* Send an EOF. */
ecore_exe_pipe_write_close(exe0); /* /bin/cat should stop when it's stdin closes. */ ecore_exe_pipe_write_close(exe0); /* /bin/cat should stop when it's stdin closes. */
} }
@ -151,8 +151,8 @@ int main(int argc, char **argv)
if (exe1) if (exe1)
{ {
exe_count++; exe_count++;
ecore_exe_pipe_write(exe1, "ls\n", 3); ecore_exe_send(exe1, "ls\n", 3);
ecore_exe_pipe_write(exe1, "exit\n", 5); ecore_exe_send(exe1, "exit\n", 5);
} }
exe2 = ecore_exe_pipe_run("/usr/bin/find . -print", exe2 = ecore_exe_pipe_run("/usr/bin/find . -print",
@ -166,7 +166,7 @@ int main(int argc, char **argv)
if (exe3) if (exe3)
{ {
exe_count++; exe_count++;
ecore_exe_pipe_write(exe3, "ls\n", 3); ecore_exe_send(exe3, "ls\n", 3);
} }
printf(" [*] exe0 = %p (/bin/uname -a)\n", exe0); printf(" [*] exe0 = %p (/bin/uname -a)\n", exe0);