mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
Removed system() debugging
This commit is contained in:
parent
b32cb60f49
commit
5908b012fb
1 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ package go_login
|
|||
//
|
||||
//
|
||||
//void pututmp(struct utmpx* entry, char* name, char* host) {
|
||||
// int32_t stat = system("echo ---- pre ----;who");
|
||||
// //int32_t stat = system("echo ---- pre ----;who");
|
||||
//
|
||||
// entry->ut_type = USER_PROCESS;
|
||||
// entry->ut_pid = getpid();
|
||||
|
@ -34,7 +34,7 @@ package go_login
|
|||
// setutxent();
|
||||
// pututxline(entry);
|
||||
//
|
||||
// stat = system("echo ---- post ----;who");
|
||||
// //stat = system("echo ---- post ----;who");
|
||||
//}
|
||||
//
|
||||
//void unpututmp(struct utmpx* entry) {
|
||||
|
@ -45,7 +45,7 @@ package go_login
|
|||
// setutxent();
|
||||
// pututxline(entry);
|
||||
//
|
||||
// int32_t stat = system("echo ---- cleanup ----;who; lastlog");
|
||||
// //int32_t stat = system("echo ---- cleanup ----;who; lastlog");
|
||||
//
|
||||
// endutxent();
|
||||
//}
|
||||
|
@ -69,7 +69,7 @@ package go_login
|
|||
// int fd = fileno(f);
|
||||
// if( write(fd, &l, sizeof(l)) == sizeof(l) ) {
|
||||
// retval = 1;
|
||||
// int32_t stat = system("echo ---- lastlog ----; lastlog");
|
||||
// //int32_t stat = system("echo ---- lastlog ----; lastlog");
|
||||
// }
|
||||
// }
|
||||
// fclose(f);
|
||||
|
|
Loading…
Reference in a new issue