3 ms·
A thought sprung to mind: In *n?x environments, if I were implementing something like this I think I'd do it using an env var for sync. Think something like:
by mst 7y ago
A thought sprung to mind: In *n?x environments, if I were implementing something like this I think I'd do it using an env var for sync. Think something like:
$ eval $(start_counters); # start process, print 'COUNTERS_ID=...'
$ ./myapp
i.e. "stealing the way ssh-agent works for fun and profit"
I'm suspecting you already thought of this sort of trick and rejected it as not worth the extra complication for the rare annoyance, but since it didn't pop into my head until hours after originally reading this comment I figure it was worth noting just in case.