* Re: [9fans] exec crashing
[not found] <CAM8pOuOuDjzxb=c_Nmf0dnJyMVta7qbq9M732m6V4zEZ-V8ycA@mail.gmail.c>
@ 2012-05-25 5:14 ` erik quanstrom
0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2012-05-25 5:14 UTC (permalink / raw)
To: 9fans
On Thu May 24 23:03:19 EDT 2012, burton.samograd@gmail.com wrote:
> I'm trying to add a restart feature to my modified rio by calling exec on a
> saved argv[0] and copy of argv that has been null terminated, but it crashes
> every time. Is there something about exec on plan9 that I should be aware
> of that's different than unix?
no, there's not. however, rio is a thread-library program and you can't just
exec() out without confusing other processes you're sharing memory with.
rio already has a hook where it will provide an Exit menu option if ".out"
appears somewhere in argv[0]. so, you could have an rc script named rio,
and rename rio to rio.out. the rc script would just need to read something
like
#!/bin/rc
while()
rio.out $*
- erik
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] exec crashing
@ 2012-05-25 3:01 Burton Samograd
0 siblings, 0 replies; 2+ messages in thread
From: Burton Samograd @ 2012-05-25 3:01 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I'm trying to add a restart feature to my modified rio by calling exec on a
saved argv[0] and copy of argv that has been null terminated, but it crashes
every time. Is there something about exec on plan9 that I should be aware
of that's different than unix?
--
Burton Samograd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-25 5:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAM8pOuOuDjzxb=c_Nmf0dnJyMVta7qbq9M732m6V4zEZ-V8ycA@mail.gmail.c>
2012-05-25 5:14 ` [9fans] exec crashing erik quanstrom
2012-05-25 3:01 Burton Samograd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).