accidentally commented out msh_linux_start_input_capture
This commit is contained in:
parent
0aa2ab39eb
commit
8bbaad6da3
4 changed files with 5 additions and 11 deletions
|
|
@ -53,9 +53,7 @@ MSH_ENTRY_POINT {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (leftoff > 0) {
|
|
||||||
--leftoff;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ int msh_execute(char *cmd, char **args) {
|
||||||
SIZE_TYPE ret;
|
SIZE_TYPE ret;
|
||||||
char *status_str;
|
char *status_str;
|
||||||
|
|
||||||
/* msh_linux_setup_signals(); */
|
// msh_linux_setup_signals();
|
||||||
|
|
||||||
ret = (SIZE_TYPE)SYSCALL(waitid, P_ALL, fork, &status, WEXITED, &ru);
|
ret = (SIZE_TYPE)SYSCALL(waitid, P_ALL, fork, &status, WEXITED, &ru);
|
||||||
|
|
||||||
|
|
@ -133,11 +133,11 @@ int msh_execute(char *cmd, char **args) {
|
||||||
itoa(status.si_code, status_str, 10);
|
itoa(status.si_code, status_str, 10);
|
||||||
msh_print_strings("Status ", status_str, "\n", 0);
|
msh_print_strings("Status ", status_str, "\n", 0);
|
||||||
msh_deallocate(status_str);
|
msh_deallocate(status_str);
|
||||||
*/
|
|
||||||
|
|
||||||
SYSCALL(kill, fork, SIGKILL);
|
SYSCALL(kill, fork, SIGKILL);
|
||||||
|
|
||||||
SYSCALL(write, 1, "\r", 2);
|
SYSCALL(write, 1, "\r", 2);
|
||||||
|
*/
|
||||||
msh_linux_start_input_capture();
|
msh_linux_start_input_capture();
|
||||||
|
|
||||||
return status.si_signo;
|
return status.si_signo;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ void msh_linux_env_map_deinit();
|
||||||
void msh_linux_start_input_capture();
|
void msh_linux_start_input_capture();
|
||||||
void msh_linux_end_input_capture();
|
void msh_linux_end_input_capture();
|
||||||
|
|
||||||
/* void msh_linux_setup_signals(); */
|
void msh_linux_setup_signals();
|
||||||
|
|
||||||
struct msh_file_t {
|
struct msh_file_t {
|
||||||
int fd;
|
int fd;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
* we return from them. Why? Because go fuck yourself :) and go spend 6 hours
|
* we return from them. Why? Because go fuck yourself :) and go spend 6 hours
|
||||||
* of your day trying to find out why before giving up :) */
|
* of your day trying to find out why before giving up :) */
|
||||||
|
|
||||||
/*
|
|
||||||
#include "linux.h"
|
#include "linux.h"
|
||||||
#include "syscall.h"
|
#include "syscall.h"
|
||||||
#include <asm/unistd_64.h>
|
#include <asm/unistd_64.h>
|
||||||
|
|
@ -22,9 +21,7 @@ static void signal_handler(int sig) {
|
||||||
msh_deallocate(status_str);
|
msh_deallocate(status_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void signal_restorer(void) {
|
static void signal_restorer(void) { SYSCALL_0(rt_sigreturn); }
|
||||||
SYSCALL_0(rt_sigreturn);
|
|
||||||
}
|
|
||||||
|
|
||||||
void msh_linux_setup_signals() {
|
void msh_linux_setup_signals() {
|
||||||
struct sigaction sigact;
|
struct sigaction sigact;
|
||||||
|
|
@ -50,4 +47,3 @@ void msh_linux_setup_signals() {
|
||||||
INIT_SIGNAL(SIGQUIT);
|
INIT_SIGNAL(SIGQUIT);
|
||||||
INIT_SIGNAL(SIGTRAP);
|
INIT_SIGNAL(SIGTRAP);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue