Remove unnecessary workaround sleep for Darwin debugging

This commit is contained in:
pancake 2014-11-06 12:02:31 +01:00
parent 619e443e7e
commit 2aae2ad42b

View File

@ -244,7 +244,6 @@ static RIODesc *__open(RIO *io, const char *file, int rw, int mode) {
riom->pid = pid;
riom->task = task;
// sleep 1s to get proper path (program name instead of ls) (racy)
r_sys_sleep (1);
pidpath = r_sys_pid_to_path (pid);
ret = r_io_desc_new (&r_io_plugin_mach, riom->pid,
pidpath, rw | R_IO_EXEC, mode, riom);