Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
rinri
/
slstatus
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
Check return value of pclose()
master
Laslo Hunhold
há 6 anos
committed by
Aaron Marcher
ascendente
c12b9cc50b
cometimento
b640cc489b
1 ficheiros alterados
com
4 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+4
-1
components/run_command.c
+ 4
- 1
components/run_command.c
Ver ficheiro
@@ -16,7 +16,10 @@ run_command(const char *cmd)
return NULL;
}
p = fgets(buf, sizeof(buf) - 1, fp);
pclose(fp);
if (pclose(fp) < 0) {
warn("pclose '%s':", cmd);
return NULL;
}
if (!p) {
return NULL;
}
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar