comparison hg-web/main.c @ 109:1c446ab6f945

[MrJuneJune] New Blog about writing Seobeo library.
author June Park <parkjune1995@gmail.com>
date Sat, 03 Jan 2026 19:37:51 -0800
parents f07abbcd2ec5
children ffb764d2fcc5
comparison
equal deleted inserted replaced
108:f07abbcd2ec5 109:1c446ab6f945
284 284
285 char command[MAX_PATH]; 285 char command[MAX_PATH];
286 snprintf(command, sizeof(command), "hg -R %s serve --stdio 2>&1", REPO_ROOT); 286 snprintf(command, sizeof(command), "hg -R %s serve --stdio 2>&1", REPO_ROOT);
287 287
288 FILE *hg_pipe = popen(command, "r+"); 288 FILE *hg_pipe = popen(command, "r+");
289 if (!hg_pipe) { 289 if (!hg_pipe)
290 {
290 Seobeo_Log(SEOBEO_DEBUG, "Failed to open pipe\n"); 291 Seobeo_Log(SEOBEO_DEBUG, "Failed to open pipe\n");
291 return resp; 292 return resp;
292 } 293 }
293 294
294 // 2. Write the command 295 // 2. Write the command