xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 6a19ad1673494d577ca310d251976e14724ecb63

Rename local variable tmp -> saved_dfl_sig_handler
Not related to packaging, but `tmp` is a bad name for variable
(neither descriptive nor helpful).
Author: xaizek
Author date (UTC): 2012-10-22 11:47
Committer name: xaizek
Committer date (UTC): 2012-10-22 12:03
Parent(s): 0a5ca3fa30190cdddf11ccf23d46023dcee4c27b
Signing key:
Tree: 9d9230799606f3f85daa73226bbb899ed1c7b569
File Lines added Lines deleted
src/utils/utils.c 4 4
File src/utils/utils.c changed (mode: 100644) (index 5ffd9134a..306afc734)
... ... my_system(char *command)
77 77 int pid; int pid;
78 78 int result; int result;
79 79 extern char **environ; extern char **environ;
80 void (*tmp)(int);
80 void (*saved_dfl_sig_handler)(int);
81 81
82 82 if(command == NULL) if(command == NULL)
83 83 return 1; return 1;
84 84
85 tmp = signal(SIGTSTP, SIG_DFL);
85 saved_dfl_sig_handler = signal(SIGTSTP, SIG_DFL);
86 86
87 87 pid = fork(); pid = fork();
88 88 if(pid == -1) if(pid == -1)
89 89 { {
90 signal(SIGTSTP, tmp);
90 signal(SIGTSTP, saved_dfl_sig_handler);
91 91 return -1; return -1;
92 92 } }
93 93 if(pid == 0) if(pid == 0)
 
... ... my_system(char *command)
121 121 break; break;
122 122 } }
123 123 }while(1); }while(1);
124 signal(SIGTSTP, tmp);
124 signal(SIGTSTP, saved_dfl_sig_handler);
125 125 return result; return result;
126 126 #else #else
127 127 char buf[strlen(cfg.shell) + 5 + strlen(command)*4 + 1 + 1]; char buf[strlen(cfg.shell) + 5 + strlen(command)*4 + 1 + 1];
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master