~henrix/ubuntu/precise/open-vm-dkms/lp-1416003

« back to all changes in this revision

Viewing changes to guestd/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1232
1232
 
1233
1233
   pidFile = fopen(pidFileName, "r");
1234
1234
   if (pidFile) {
1235
 
      fscanf(pidFile, "%"FMTPID"\n", &pid);
 
1235
      int ret;
 
1236
      ret = fscanf(pidFile, "%"FMTPID"\n", &pid);
1236
1237
      fclose(pidFile);
 
1238
      if (ret != 1) {
 
1239
        return FALSE;
 
1240
      }
1237
1241
 
1238
1242
      /*
1239
1243
       * XXX There is an assumption that if the process with pid is alive,