-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a method for the terminal window to also receive the "segmentation fault (core dumped) ./a.exe" message? #293
Comments
So what's wrong with this plugin? What command do you use? |
I have tried both |
My async configuration: let g:asyncrun_bell = 1
let g:asyncrun_save = 1
let g:asyncrun_mode = 'term' |
Perhaps I know why the terminal doesn't receive #include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
int main() {
int pid;
pid = fork();
/* Child process */
if( pid == 0 ) {
sleep( 1 );
printf( "Child: pid is %d and ppid is %d\n", getpid(), getppid() );
} else { /* Parent process */
// sleep(1);
printf( "Parent: pid is %d and ppid is %d\n", getpid(), getppid() );
}
return 0;
} |
However, the strange thing is that |
Quickfix can receive the complete output from the above code but does not receive |
I found that if the segmentation fault occurred because of my bad code, the terminal window does not receive or display this information. Is there a method to address this issue?
The text was updated successfully, but these errors were encountered: