deadpixi / sam

An updated version of the sam text editor.
Other
433 stars 47 forks source link

Should sammain() fork and detach itself? #73

Open ckeen opened 6 years ago

ckeen commented 6 years ago

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.