Daniel Eklöf
b5efe984bb
slave: prefix argv[0] with a '-' when spawning a login-shell
2020-02-20 18:36:09 +01:00
Daniel Eklöf
39146fac5c
term: term_init: add 'cwd' argument
...
This is used when spawning the slave, to set its current working
directory just before we exec() the client.
In a regular foot instance, we set the cwd from getcwd().
In a foot server instance, each connecting client sends its cwd to the
server, and we use that.
2019-12-21 19:57:28 +01:00
Daniel Eklöf
69d62d3cd2
slave: set TERM environment variable in slave process
2019-11-01 21:01:15 +01:00
Daniel Eklöf
18921f7f45
term: move client startup to a new function, slave_spawn()
2019-10-30 18:05:03 +01:00
Daniel Eklöf
ce5f5e4d51
slave: rename slave_spawn() -> slave_exec()
2019-10-30 17:30:58 +01:00
Daniel Eklöf
c11cc2be57
main: allow user to override shell on the command line
2019-07-17 09:55:36 +02:00
Daniel Eklöf
aa87be43ba
slave: report exec() failure back to main process
2019-07-17 09:39:12 +02:00
Daniel Eklöf
153894eb73
slave: exec shell from conf
2019-07-17 09:30:39 +02:00
Daniel Eklöf
acda4d2d31
Set up pseudo terminal and fork slave
2019-06-13 15:19:10 +02:00