mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[fg] master_pid is 0 for slave terminals, so no need to comapare with pid
(cherry picked from commit 432771ac82
)
This commit is contained in:
parent
66e17a6a07
commit
0b704887db
@ -77,7 +77,7 @@ sig_tstp(struct terminal *term)
|
||||
|
||||
block_itrm();
|
||||
#if defined (SIGCONT) && defined(SIGTTOU)
|
||||
if (pid == master_pid) {
|
||||
if (master_pid) {
|
||||
pid_t newpid = fork();
|
||||
if (!newpid) {
|
||||
sleep(1);
|
||||
|
@ -190,9 +190,11 @@ init_term(int fdin, int fdout)
|
||||
term->fdout = fdout;
|
||||
term->master = (term->fdout == get_output_handle());
|
||||
|
||||
#ifdef HAVE_GETPID
|
||||
if (term->master) {
|
||||
master_pid = getpid();
|
||||
}
|
||||
#endif
|
||||
|
||||
term->blocked = -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user