deadpixi/sam

Should sammain() fork and detach itself?

ckeen opened this issue · 0 comments

ckeen commented

With the recent changes running B file.txt will hang like running sam file.txt when there's no instance left open.

I wonder whether we should change this that sam(1) and B(1) calls will always return immediately.

This has the plus side of B always behaving the same, maybe indicating by its return value whether a new instance has been started.

This is probably undesireable during debugging or remote execution though, so that would mean either restrict this to calls in B or add another flag disabling the detachment of the process.